import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
//        int a = scan.nextInt();//读入整型
//        System.out.println(a);

        String str = scan.nextLine();//scan.nextLine读入字符串，但注意它会读入回车
        System.out.println(str);

        String s = scan.next();//scan.next()读到空格就读取结束了
        System.out.println(s);
    }
}
